package com.niuwa.p2p.exception;

/**
 * @ClassName: BusinessException
 * @Description: 业务运行时异常
 * @author: zhangbo
 * @date:2015年1月12日 下午2:25:24
 */
public class BusinessException extends RuntimeException {

	private static final long serialVersionUID = 3131590888739851411L;
	
	/**messageId*/
	private String messageId;
	/**message参数*/
	private String[] args;
	
	/**logMessage参数*/
	private Exception logMessage;
	
	
	public BusinessException(String messageId){
		this.messageId = messageId;
	}
	
	public BusinessException(String messageId, String[] args){
		this.messageId = messageId;
		this.args = args;
	}
	public BusinessException(String messageId,Exception logMessage){
		this.messageId = messageId;
		this.logMessage=logMessage;
	}
	
	public BusinessException(String messageId, String[] args,Exception logMessage){
		this.messageId = messageId;
		this.args = args;
		this.logMessage=logMessage;
	}

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public String[] getArgs() {
		return args;
	}

	public void setArgs(String[] args) {
		this.args = args;
	}

	public Exception getLogMessage() {
		return logMessage;
	}

	public void setLogMessage(Exception logMessage) {
		this.logMessage = logMessage;
	}
	
}
